/*
 * Copyright 2006-2023 ahtelit.com, All Rights Reserved.
 */

package com.telit.firecommand.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 水质数据DTO
 *
 * @author yuezhuang
 * @since 2023-03-31
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "SciWaterQualityDataDTO", description = "水质数据DTO")
public class SciWaterQualityDataDTO implements Serializable {

    private static final long serialVersionUID = -1L;

    @ApiModelProperty(value = "ID", required = true)
    private Long id;

    @ApiModelProperty("监测站设备编号")
    private String code;

    @ApiModelProperty("数据时间")
    private String time;

    @ApiModelProperty("溶解氧mg/L")
    private BigDecimal dissolvedOxygen;

    @ApiModelProperty("PH值")
    private BigDecimal ph;

    @ApiModelProperty("电导率 μS/cm")
    private BigDecimal conductivity;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @ApiModelProperty("水位 m")
    private BigDecimal waterStage;

    @ApiModelProperty("流速 m/s")
    private BigDecimal flowRate;

    @ApiModelProperty("浊度 ntu")
    private BigDecimal ntu;

    @ApiModelProperty("电导率 dS/m")
    private BigDecimal conductivityD;

    @ApiModelProperty("流量 m3/s")
    private BigDecimal flow;

    @ApiModelProperty("监测站设备名称")
    private String stationName;

}
